STEP 8: The calculate_damage() function is ready to be called now. This function requires two arguments!
A function call must include the same number of arguments as there are parameters in the function definition.
- Go to LOGIC and . Drag Call with Parameters to the bottom of the fireball() function.
- Change my_function to calculate_damage. Change my_var1 to caster. Change my_var2 to "fireball".
- Click Run and choose a to cast a fireball! What happens now?
To navigate the page using the TAB key, first press ESC to exit the code editor.